import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'flutter_spectrum_method_channel.dart';

abstract class FlutterSpectrumPlatform extends PlatformInterface {
  FlutterSpectrumPlatform() : super(token: _token);

  static final Object _token = Object();

  static FlutterSpectrumPlatform _instance = MethodChannelFlutterSpectrum();

  static FlutterSpectrumPlatform get instance => _instance;

  static set instance(FlutterSpectrumPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  listenPcm(EventHandler onEvent, EventHandler onError) {}

  startPlay(String filePath) {}

  stopPlay() {}

  onPlayCompleted(EventHandler onEvent) {}
}
